home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / BUS / エクスプレス住所録2.5 folde.sit / エクスプレス住所録2.5 folder / エクスプレス住所録2.5-1 / 作成用 / stack_-1.xml < prev    next >
Extensible Markup Language  |  1995-09-02  |  12KB  |  16 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>1</cardCount>
  7.     <cardID>3806</cardID>
  8.     <listID>2101</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>-------------------------------------------------------------------HyperCard Home StackVersion J1-2.2Copyright 1987-1991,1993-1994 by Apple Computer, Inc.All Rights Reserved.THE MESSAGE HANDLERS USED IN THIS SCRIPT:startUp,getHomeInfo,resume,help,hyperTalknav,c,b,s,mw,vw,se,ss,xy,disallowInterruption,allowInterruptionsetUserLevelFive,restoreUserLevel,searchScript,checkForMissingFonts,getStackVersion,getStackNameTHE FUNCTION HANDLERS USED IN THIS SCRIPT:lastHCItem,checkHCFontXCMD'S USED BY THIS SCRIPT:FontExists XFCNForm: FontExists(<font name>,<point size>)It returns TRUE if the font/point size is installed or FALSE if not.------------------------------------------------------------------------  Startup/Resume Scripts:  ---------------------------------------------on startUp-- Requires handler: getHomeInfo,checkForMissingFonts-- gets and sets the user's preferencescheckForMissingFontsgetHomeInfo-- audio Palette startupif there is a stack "Audio Help" then -- 竏†start using stack "Audio Help" -- 竏†send "startSound" to stack "Audio Help" -- 竏†end ifpass startUp -- so others can use itend startUpon getHomeInfo-- Needs: User preferences card of the home stack-- configures HyperCard to the user specified preferencesglobal Stacks,Applications,Documents,UserNameif short name of this stack is not "Home" then -- 竏†lock screenset lockRecent to TRUEset lockMessages to TRUEpush this card -- remember where we arego home -- will take us to the home stack in case we're not thereput FALSE into stackIsHomeelse put TRUE into stackIsHomeput (cd fld "User Name" of cd "User Preferences") into UserNameset the userLevel to cd fld "User Level" of cd "User Preferences" -- hidden fieldset the powerKeys to hilite of cd btn id 3 of cd "User Preferences" -- Power Keysset the textArrows to hilite of cd btn id 2 of cd "User Preferences" -- Arrow keys in textset the blindTyping to hilite of cd btn id 1 of cd "User Preferences" -- Blind Typing-- load the search path globalsput bg fld "Paths" of cd "Stacks" of bg "Paths" into Stacksput bg fld "Paths" of cd "Applications" of bg "Paths" into Applicationsput bg fld "Paths" of cd "Documents" of bg "Paths" into Documentsif not stackIsHome thenpop card -- return to where we wereset lockRecent to FALSE -- clean up for exitset lockMessages to FALSEunlock screenend ifend getHomeInfoon resume-- Requires handler: getHomeInfo-- gets and sets user preferences upon returninggetHomeInfopass resume -- so others can use itend resume-----  Help Scripts:  --------------------------------------------on help theTopic-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "help <topic>" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- テ駅テ嘉」テ益テ厩テ運テ叡テ丑 (HyperCard Help) テ‡テƒ <topic> テ‡テε雨テ…[テ栄テ‡窶ヲテ 竅„テャテ†テ‡竏妥‡テ暗③put "HyperCard Help" into theStack -- 竏†if ":" & theStack & RETURN is in the stacks thenif the longWindowTitlesthen show window line (the number of lines of char 1 to offset(":" & theStack & RETURN, the stacks) of the stacks) of the stackselse show window theStackelsego to stack theStack in a new window -- try in a new windowif the result = "Cancel" then exit to hyperCardelse if the result is not empty then go to stack theStackend ifif the result is empty then findInTitle theTopic -- in the help stackend helpon hyperTalk theTopic-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "hyperTalk <topic>" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- HyperTalk テ嘉、テ液テ院テ嘉・テ嘉ャテ厩テ厩テ運テ叡テ丑テ‡テƒ <topic> テ‡テε雨テ…[テ栄テ‡窶ヲテ 竅„テャテ†テ‡竏妥‡テ暗③put "HyperTalk Reference" into theStackif ":" & theStack & RETURN is in the stacks thenif the longWindowTitlesthen show window line (the number of lines of char 1 to offset(":" & theStack & RETURN, the stacks) of the stacks) of the stackselse show window theStackelsego to stack theStack in a new window -- try in a new windowif the result = "Cancel" then exit to hyperCardelse if the result is not empty then go to stack theStackend ifif the result is empty then findInTitle theTopic -- in the help stackend hyperTalk-----  Utility Scripts:  --------------------------------------------on nav-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "nav" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- テ永テ詠テ渦テ…[テ運テ英テ嘉・テ叡テ曳テ‡邃「テゥgテ‡ツカテ‡テ暗③-- Requires XCMD: palette "Navigator"palette "Navigator"end navon c-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "c" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- テ雨テ…[テ栄ティテ禿ッテ津雲テ韻テ陰テ嘉ァテ碓テ‡邃「テ、Jテ‡竕 テ③-- Requires handlers: setUserLevelFive,restoreUserLevelput the tool into saveToolchoose browse toolsetUserLevelFive -- so the menu item will be theredoMenu "Card Info..."restoreUserLevelchoose saveToolend con b-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "b" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- テ頴テ叡テ丑テ碓テ嘉「テ右テ嘉ャテ栄ティテ禿ッテ津雲テ韻テ陰テ嘉ァテ碓テ‡邃「テ、Jテ‡竕 テ③-- Requires handlers: setUserLevelFive,restoreUserLevelput the tool into saveToolchoose browse toolsetUserLevelFive -- so the menu item will be theredoMenu "Bkgnd Info..."restoreUserLevelchoose saveToolend bon s-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "s" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- テ厩テ運テ叡テ丑ティテ禿ッテ津雲テ韻テ陰テ嘉ァテ碓テ‡邃「テ、Jテ‡竕 テ③-- Requires handlers: setUserLevelFive,restoreUserLevelput the tool into saveToolchoose browse toolsetUserLevelFive -- so the menu item will be theredoMenu "Stack Info..."restoreUserLevelchoose saveToolend son mw-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "mw" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- テ嘉…テ叡テ瓜テ…[テ姥テッ¥テゥツカテ‡邃「テ、Jテ‡竕 テ③-- Requires XWindow: Message Watchershow window "Message Watcher"end mwon vw-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "vw" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- テッナ禿ェテョテッ¥テゥツカテ‡邃「テ、Jテ‡竕 テ③-- Requires XWindow: Variable Watchershow window "Variable Watcher"end vwon se-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "se" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- テ厩テ丑テ嘉、テ益テ曳テッ窶愿ィWテ‡テε液テ羽テ嘉ャテ曳テ‡邃「テェ窶コテュテ凝‡竕暗‡ツエテ‡テ暗③-- Requires XWindow: Script Editorask "テ厩テ丑テ嘉、テ益テ曳テッ窶愿ィWテ‡テε液テ羽テ嘉ャテ曳" with "Osaka" -- 竏† default valueif the result is "Cancel" or it is empty then exit seset scriptTextFont to itask "テ厩テ丑テ嘉、テ益テ曳テッ窶愿ィWテ‡テεッ竏づゥテカテ欝テ韻テ浦" with "12" -- 竏† default valueif the result is "Cancel" or it is empty then exit seset scriptTextSize to itend seon ss pattern,stackName-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "ss" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- テォSテ厩テ丑テ嘉、テ益テ曳テュテ愿‡テεッ竏づゥテカテウテ津‡ï」ソテ・テシテァトアテ‡竕暗‡ツエテ‡テ暗③-- テ厩テ丑テ嘉、テ益テ曳テッ窶愿ィWテ‡邃「テ、Jテ‡竕 テ‡テε‡竕暗②テ厩テ丑テ嘉、テ益テ曳テ嘉…テ泳テ嘉姪…[テ‡テƒ-- テ・テシテァトアテ嘘テ厭テ嘉ャテ栄テ‡竕暗・テシテァトアテ‡竏妥‡テ暗③-- テョツコテ、pテ‡テε雨テ運テ雨テ永テ‡ï」ソテ・テシテァトアテ‡竏妥‡テ暗‡竏†テ②テォ竏づァ窶コテ‡ツオテ‡ニ津‡ツ「テ‡ツサテ‡ツ「テ厩テ丑テ嘉、テ益テ曳テ‡邃「-- テ、Jテ‡ツゥテ‡テ催‡テ暗‡ツアテ‡竏†テ‡邃「テ‡窶 テ‡テ暗‡テε‡竕暗ュテァテ 窶敕‡竏妥‡テ暗③-- テ・テシテァトアテ嘘テ厭テ嘉ャテ栄テ‡ï」ソテゥgテ‡ツァテゥテサテ②テォOテ・窶榲‡邃「 SPACE テ‡窶š RETURN テ‡窶ヲテ‡テ甘‡ツ。テ‡ニ’-- テ」テ甘ェテソテ‡テテ‡テ催‡ホゥテッ竏づゥテカテウテ津‡ï」ソテュTテ‡竏妥‡ツサテ‡テテ…sテッ竏づゥテカテウテ津ォSテォテε…tテ‡ï」ソテゥwテュテ凝‡ツオテ‡ニ津‡ツョテ‡竕 テ③-- テャヒ凖ア{テ・テ催‡テεッ竏づィテ陛‡テεウlテ‡窶ヲ SPACE テ‡窶ヲテ‡テ甘‡ツ。テ‡ニ津」テ甘ェテソテ‡テテ‡テ催‡ニ津‡ツ「テ‡ツサテ‡ツ「-- テッ竏づゥテカテウテ津‡ï」ソテュTテ‡竏妥‡ツサテ‡テテ…sテッ竏づゥテカテウテ津‡テε テ催ッテョテ…tテ‡ï」ソテゥwテュテ凝‡ツオテ‡ニ津‡ツョテ‡竕 テ③-- Requires handler: searchScriptsearchScript pattern,stackName -- 竏† type "ss" into message boxend sson xy-- 竏† テゥgテ‡ツ「テッヒ堙⑹テ嘉…テ叡テ瓜テ…[テ姥テ閲テ叡テ丑テ厩テ‡竕ˆ "xy" テ‡竏†テ運テ韻テ益テ‡竏妥‡テ暗‡竏†テ②-- テ厭テ右テ厩テ‡テε ツ テュuテ‡ï」ソテゥツカテ‡竏妥③-- テュテ愿ゥ~テ‡竏妥‡テ暗‡窶ヲテ‡テ陛②テ厭テ右テ厩テ‡ï」ソテ丑テ嘉、テ叡テ丑テ‡竏妥‡テ暗③set cursor to crossrepeat until the mouseClickput the mouseLoc && "  horz:" & the mouseH && "  vert:" & the mouseV -- 竏†end repeatend xyon disallowInterruption-- テ厩テ丑テ嘉、テ益テ曳テ‡テεゥツソテァsテ‡ï」ソテュテ愿ュfテ‡竕暗‡ツエテ‡ツサテ‡ツ「テ‡テ甘‡ツァテ‡窶ヲテ‡竏妥‡テ暗③set cantAbort of this stack to TRUEend disallowInterruptionon allowInterruption-- テ厩テ丑テ嘉、テ益テ曳テ‡テεゥツソテァsテ‡ï」ソテュテ愿ュfテ‡竕暗‡ツエテ‡テ暗‡テ甘‡ツァテ‡窶ヲテ‡竏妥‡テ暗③set cantAbort of this stack to FALSEend allowInterruptionon setUserLevelFive -- 竏† テ嘉愿…[テ蔚テ嘉・テ悦テ嘉」テ‡ï」ソテ㈵テ‡窶ヲテェ窶コテュテ凝‡竏妥‡テ暗③global SvLvlput the userLevel into SvLvlset the userLevel to 5end setUserLevelFiveon restoreUserLevel-- 竏† setUserLevelFive テ‡テεゥgテウpテ・窶榲‡窶ヲテ嘉愿…[テ蔚テ嘉・テ悦テ嘉」テ‡ï」ソテ・竕・テ‡窶ヲテアïャづ‡竏妥③global SvLvlif SvLvl is a number then set the userLevel to SvLvlend restoreUserLevelon searchScript pattern,stackName-- 竏† テ厩テ運テ叡テ丑テュテ愿‡テε‡竏妥‡笳甘‡ニ津‡テε厩テ丑テ嘉、テ益テ曳テ‡ï」ソテ・テシテァトアテ‡竏妥‡テ暗③-- Requires handlers: setUserLevelFive,restoreUserLevelglobal ScriptFindString -- HyperTalk global variableset lockRecent to TRUEsetUserLevelFive -- saves current level and sets level 5push card -- remember where we areif pattern is empty thenask "テ・テシテァトアテッ竏づゥテカテウテ’" with ScriptFindString -- 竏†if (it is empty) or (the result is "Cancel") then exit searchScriptput it into pattern -- otherwise use it as the search patternend if-- put in HyperTalk global so just CMD-F in editor for easy findput pattern into ScriptFindStringset lockMessages to TRUE -- avoid open messagesif stackName is not empty then go to stack stackName-- Note: if stackName is empty then we search the current stackset cursor to busy-- search the stack script of the stackif the script of this stack contains patternthen edit script of this stack-- search the background scripts and objects of the stackrepeat with curBkgnd = 1 to the number of bkgndsset cursor to busygo to card 1 of bkgnd curBkgndif the script of this bkgnd contains patternthen edit script of bkgnd curBkgndrepeat with curBgBtn = 1 to the number of bkgnd buttonsset cursor to busyif the script of bkgnd button curBgBtn contains patternthen edit script of bkgnd button curBgBtnend repeatrepeat with curBgField = 1 to the number of bkgnd fieldsset cursor to busyif the script of bkgnd field curBgField contains patternthen edit script of bkgnd field curBgFieldend repeatend repeat-- search the card scripts and objects of the stackrepeat with curCard = 1 to the number of cardsset cursor to busygo card curCardif the script of this card contains patternthen edit script of this cardrepeat with curCdBtn = 1 to the number of card buttonsset cursor to busyif the script of card button curCdBtn contains patternthen edit script of card button curCdBtnend repeatrepeat with curCdFld = 1 to the number of card fieldsset cursor to busyif the script of card field curCdFld contains patternthen edit script of card field curCdFldend repeatend repeatset lockMessages to FALSEset lockRecent to FALSEpop card -- return to where we wererestoreUserLevel -- set userLevel back to whatever it wasanswer "テ‡竏妥‡笳甘‡ニ津‡テε厩テ丑テ嘉、テ益テ曳テ‡ï」ソテ・テシテァトアテ‡ツオテ‡窶ケテ‡ツオテ‡ホゥテ③" -- 竏†end searchScriptfunction lastHCItem delim,theText-- テッ竏づゥテカテウテ’ theText テ‡ï」ソテ」テ甘ェテソテ‡テ凝ッ竏づゥテカ delim テ‡竕暗」テ甘ェテソテ‡ツ。テ‡ホゥティテ催ァテ。テ②-- テァ竕暗・窶榲‡テεァテ„テア竅„テ‡窶ヲテォテ、テャテアテ‡竏妥‡テ暗ッテョテッ邃「テ‡ï」ソテッ窶佚‡竏妥③-- テ雲テ疫テ嘉」テ頴テ韻テ曳テッ竏づゥテカテ‡ï」ソテ、窶ケテ‡ïャテッ竏づゥテカテウテ津‡窶ヲテ‡ツャテ‡ツ「テ‡ニ津‡テ陛②-- テ‡ツァテ‡窶ケテ‡竕 テャテ†テァテ湘‡ツオテ‡ツサテ‡ツ「テ‡ツアテ‡竏†テ‡邃「テ‡窶 テ‡テ暗③if delim is in theText thenput lastHCItem(delim,char offset(delim,theText) + 1 to ツャ(the number of chars in theText) of theText) into theTextend ifreturn theTextend lastHCItem-----  Font Adjustment Scripts:  ----------------------------------function checkHCFont theFont,pointSizes-- テゥwテュテ凝‡竕・テ‡テ催‡ホゥテ欝テ韻テ浦テ‡テε液テ羽テ嘉ャテ曳テ‡邃「 System テ‡窶ヲテ韻テ嘉ャテ厩テ曳テ…[テ嘉」テ‡竕・テ‡テ催‡ニ’-- テ‡ツ「テ‡テ暗‡ツゥテュ竕、テ‡笳甘②テア竕・テ‡ツ「ティテ催ァテ。テ‡テ陛液テ羽テ嘉ャテ曳テ‡テε嘉、テ厩テ曳テ‡ï」